GTK_TYPE_WIDGET_HELP_TYPE,
GTK_WIDGET_HELP_WHATS_THIS);
- /**
- * GtkWidget:interior-focus:
- *
- * The "interior-focus" style property defines whether
- * to draw the focus indicator inside widgets.
- *
- * Deprecated: 3.14: use the outline CSS properties instead.
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_boolean ("interior-focus",
- P_("Interior Focus"),
- P_("Whether to draw the focus indicator inside widgets"),
- TRUE,
- GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
- /**
- * GtkWidget:focus-line-width:
- *
- * The "focus-line-width" style property defines the width,
- * in pixels, of the focus indicator line
- *
- * Deprecated: 3.14: use the outline-width and padding CSS properties instead.
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_int ("focus-line-width",
- P_("Focus linewidth"),
- P_("Width, in pixels, of the focus indicator line"),
- 0, G_MAXINT, 1,
- GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
- /**
- * GtkWidget:focus-line-pattern:
- *
- * The "focus-line-pattern" style property defines the dash pattern used to
- * draw the focus indicator. The character values are interpreted as pixel
- * widths of alternating on and off segments of the line.
- *
- * Deprecated: 3.14: use the outline-style CSS property instead.
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_string ("focus-line-pattern",
- P_("Focus line dash pattern"),
- P_("Dash pattern used to draw the focus indicator. The character values are interpreted as pixel widths of alternating on and off segments of the line."),
- "\1\1",
- GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
- /**
- * GtkWidget:focus-padding:
- *
- * The "focus-padding" style property defines the width, in pixels,
- * between focus indicator and the widget 'box'.
- *
- * Deprecated: 3.14: use the outline-offset CSS properties instead.
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_int ("focus-padding",
- P_("Focus padding"),
- P_("Width, in pixels, between focus indicator and the widget 'box'"),
- 0, G_MAXINT, 1,
- GTK_PARAM_READABLE | G_PARAM_DEPRECATED));
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- /**
- * GtkWidget:cursor-color:
- *
- * The color with which to draw the insertion cursor in entries and
- * text views.
- *
- * Deprecated: 3.20: Use the caret-color CSS property
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_boxed ("cursor-color",
- P_("Cursor color"),
- P_("Color with which to draw insertion cursor"),
- GDK_TYPE_COLOR,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
- /**
- * GtkWidget:secondary-cursor-color:
- *
- * The color with which to draw the secondary insertion cursor in entries and
- * text views when editing mixed right-to-left and left-to-right text.
- *
- * Deprecated: 3.20: Use the -gtk-secondary-caret-color CSS property
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_boxed ("secondary-cursor-color",
- P_("Secondary cursor color"),
- P_("Color with which to draw the secondary insertion cursor when editing mixed right-to-left and left-to-right text"),
- GDK_TYPE_COLOR,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-G_GNUC_END_IGNORE_DEPRECATIONS
gtk_widget_class_install_style_property (klass,
g_param_spec_float ("cursor-aspect-ratio",
P_("Cursor line aspect ratio"),
FALSE,
GTK_PARAM_READABLE));
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- /**
- * GtkWidget:link-color:
- *
- * The "link-color" style property defines the color of unvisited links.
- *
- * Since: 2.10
- *
- * Deprecated: 3.12: Links now use a separate state flags for selecting
- * different theming, this style property is ignored
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_boxed ("link-color",
- P_("Unvisited Link Color"),
- P_("Color of unvisited links"),
- GDK_TYPE_COLOR,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
- /**
- * GtkWidget:visited-link-color:
- *
- * The "visited-link-color" style property defines the color of visited links.
- *
- * Since: 2.10
- *
- * Deprecated: 3.12: Links now use a separate state flags for selecting
- * different theming, this style property is ignored
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_boxed ("visited-link-color",
- P_("Visited Link Color"),
- P_("Color of visited links"),
- GDK_TYPE_COLOR,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-G_GNUC_END_IGNORE_DEPRECATIONS
-
- /**
- * GtkWidget:wide-separators:
- *
- * The "wide-separators" style property defines whether separators have
- * configurable width and should be drawn using a box instead of a line.
- *
- * Since: 2.10
- *
- * Deprecated: 3.20: Use CSS properties on the separator elements to style
- * separators; the value of this style property is ignored.
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_boolean ("wide-separators",
- P_("Wide Separators"),
- P_("Whether separators have configurable width and should be drawn using a box instead of a line"),
- FALSE,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
- /**
- * GtkWidget:separator-width:
- *
- * The "separator-width" style property defines the width of separators.
- * This property only takes effect if the "wide-separators" style property is %TRUE.
- *
- * Since: 2.10
- *
- * Deprecated: 3.20: Use the standard min-width CSS property on the separator
- * elements to size separators; the value of this style property is ignored.
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_int ("separator-width",
- P_("Separator Width"),
- P_("The width of separators if wide-separators is TRUE"),
- 0, G_MAXINT, 0,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
- /**
- * GtkWidget:separator-height:
- *
- * The "separator-height" style property defines the height of separators.
- * This property only takes effect if the "wide-separators" style property is %TRUE.
- *
- * Since: 2.10
- *
- * Deprecated: 3.20: Use the standard min-height CSS property on the separator
- * elements to size separators; the value of this style property is ignored.
- */
- gtk_widget_class_install_style_property (klass,
- g_param_spec_int ("separator-height",
- P_("Separator Height"),
- P_("The height of separators if \"wide-separators\" is TRUE"),
- 0, G_MAXINT, 0,
- GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
/**
* GtkWidget:scroll-arrow-hlength:
_gtk_modifier_style_map_color (style, name, color);
}
-/**
- * gtk_widget_override_cursor:
- * @widget: a #GtkWidget
- * @cursor: (allow-none): the color to use for primary cursor (does not need to be
- * allocated), or %NULL to undo the effect of previous calls to
- * of gtk_widget_override_cursor().
- * @secondary_cursor: (allow-none): the color to use for secondary cursor (does not
- * need to be allocated), or %NULL to undo the effect of previous
- * calls to of gtk_widget_override_cursor().
- *
- * Sets the cursor color to use in a widget, overriding the
- * cursor-color and secondary-cursor-color
- * style properties. All other style values are left untouched.
- * See also gtk_widget_modify_style().
- *
- * Note that the underlying properties have the #GdkColor type,
- * so the alpha value in @primary and @secondary will be ignored.
- *
- * Since: 3.0
- *
- * Deprecated: 3.16: This function is not useful in the context of CSS-based
- * rendering. If you wish to change the color used to render the primary
- * and secondary cursors you should use a custom CSS style, through an
- * application-specific #GtkStyleProvider and a CSS style class.
- */
-void
-gtk_widget_override_cursor (GtkWidget *widget,
- const GdkRGBA *cursor,
- const GdkRGBA *secondary_cursor)
-{
- GtkModifierStyle *style;
-
- g_return_if_fail (GTK_IS_WIDGET (widget));
-
- style = _gtk_widget_get_modifier_properties (widget);
- _gtk_modifier_style_set_color_property (style,
- GTK_TYPE_WIDGET,
- "cursor-color", cursor);
- _gtk_modifier_style_set_color_property (style,
- GTK_TYPE_WIDGET,
- "secondary-cursor-color",
- secondary_cursor);
-}
-
static void
gtk_widget_real_direction_changed (GtkWidget *widget,
GtkTextDirection previous_direction)